import Vue from 'vue'
import Vuex from 'vuex'

import createPersistedstate from 'vuex-persistedstate'

Vue.use(Vuex)

import user from './modules/user'
import cart from './modules/cart'

export default new Vuex.Store({
  state: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user,
    cart
  },
  plugins: [
    createPersistedstate({
      key: 'text-store',
      paths: ['user', 'cart']
    })
  ]
})
